package servlet;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;


public class MockServer {
	public static void main(String[] args) throws IOException {
		ServerSocket ss = new ServerSocket(8080);
		Socket s = ss.accept();
		InputStream in =s.getInputStream();
		int b;
		while((b=in.read())!=-1){
			System.out.print((char)b);
		}
	}
}
